package com.tlvip.tlvipweb;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.atomic.AtomicLong;

@SpringBootApplication
@RestController
//@ServletComponentScan
public class TlvipWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(TlvipWebApplication.class, args);
    }

    public static final AtomicLong cal = new AtomicLong(0);

    @RequestMapping
    public String pressTest(String value) {
        try {
            Thread.sleep(500);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello" + cal.getAndIncrement();
    }
}
